package org.csu.mall.service;

import org.csu.mall.common.UniformResponse;
import org.csu.mall.entity.Account;
import org.csu.mall.vo.CartCommodityListVO;
import org.csu.mall.vo.CartCommodityVO;

import java.util.List;
import java.util.Map;

public interface ICartService {

    UniformResponse<String> addCart(String itemId, Integer quantity, Account account);

    UniformResponse<String> removeCart(Integer id, Account account);

    UniformResponse<String> addQuantity(Integer id, Integer quantity, Account account);

    UniformResponse<CartCommodityListVO> lookCart(Account account, int pageSize, int pageNum);

    UniformResponse<CartCommodityVO> cartPurchase(Integer id, Account account);

    UniformResponse<String> updateChecked(Integer id, Integer checked,  Account account);

    UniformResponse<Map<String, String>> purchaseCheckedCommodity(Account account);
}
